﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Tasks
    {
        private int taskID;

        public int TaskID
        {
            get { return taskID; }
            set { taskID = value; }
        }

        private string titel;

        public string Titel
        {
            get { return titel; }
            set { titel = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string status;

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        private int userStoryID;

        public int UserstoryID
        {
            get { return userStoryID; }
            set { userStoryID = value; }
        }

        private int estimatedWorkload;

        public int Estimatedworkload
        {
            get { return estimatedWorkload; }
            set { estimatedWorkload = value; }
        }

        private int realWorkLoad;

        public int RealWorkload
        {
            get { return realWorkLoad; }
            set { realWorkLoad = value; }
        }

        private int userID;

        public int UseriD
        {
            get { return userID; }
            set { userID = value; }
        }

        private string comment;

        public string Comment
        {
            get { return comment; }
            set { comment = value; }
        }

        private string userstorytitel;

        public string Userstorytitel
        {
            get { return userstorytitel; }
            set { userstorytitel = value; }
        }


        private string sprinttitel;

        public string Sprinttitel
        {
            get { return sprinttitel; }
            set { sprinttitel = value; }
        }


        private DateTime sprintduedate;

        public DateTime Sprintduedate
        {
            get { return sprintduedate; }
            set { sprintduedate = value; }
        }


        private string teamname;

        public string Teamname
        {
            get { return teamname; }
            set { teamname = value; }
        }

        private string username;

        public string Username
        {
            get { return username; }
            set { username = value; }
        }

        private string userfirstname;

        public string Userfirstname
        {
            get { return userfirstname; }
            set { userfirstname = value; }
        }

        private string impedimenttitel;

        public string Impedimenttitel
        {
            get { return impedimenttitel; }
            set { impedimenttitel = value; }
        }
        private int impedimentID;

        public int ImpedimentID
        {
            get { return impedimentID; }
            set { impedimentID = value; }
        }


        private int productid;

        public int Productid
        {
            get { return productid; }
            set { productid = value; }
        }

        public string Productname
        {
            get { return productname; }
            set { productname = value; }
        }

        //Default constructor
        public Tasks()
        {

        }

        //Vars for TaskDetail
        private string productname;




        //Constructor for use in MyView list, with extra data
        public Tasks(int Taskid, string Taskname, string Status,DateTime SprintDeadline, string sprinttitel, string teamname, string userstorytitel )
        {
            this.TaskID = Taskid;
            this.Titel = Taskname;
            //this.taskID = TaskID;
            this.status = Status;
            //this.description = Description;
            //this.UserstoryID = UserStoryiD;
            //this.Estimatedworkload = EstimatedWorkload;
            //this.RealWorkload = RealWorkload;
            //this.UseriD = UseriD;
            //this.Comment = comment;
            this.userstorytitel = userstorytitel;
            this.sprinttitel = sprinttitel;
            this.sprintduedate = SprintDeadline;
            this.teamname = teamname;
            //this.username = username;

        }
        public Tasks(string titel, int taskid)
        {

            this.TaskID = taskid;
            this.Titel = titel;

        }

        //constructor for taskdetails
        public Tasks(int taskid,string titel,string description,string status,string userstorytitel,string sprinttitel,string productname,string firstname,string name, string impedimenttitel,int estimatedworkload, int realworkedtime)
        {
            this.TaskID = taskid;
            this.Titel = titel;
            //this.taskID = TaskID;
            this.status = status;
            this.description = description;
            //this.UserstoryID = UserStoryiD;
            this.Estimatedworkload = estimatedworkload;
            this.RealWorkload = realworkedtime;
            //this.UseriD = UseriD;
            //this.Comment = comment;
            this.userstorytitel = userstorytitel;
            this.sprinttitel = sprinttitel;
            this.productname = productname;
            this.username = name;
            this.userfirstname = firstname;
            this.impedimenttitel = impedimenttitel;
            //this.sprintduedate = SprintDeadline;
            //this.teamname = teamname;
            //this.username = username;

        }

        public Tasks(int TaskID, string Titel, string comment, string Description, string Status, int UserStoryiD, int estimatedWorkload, int RealWorkload, int UseriD)
        {
            this.taskID = TaskID;
            this.status = Status;
            this.description = Description;
            this.status = Status;
            this.UserstoryID = UserStoryiD;
            this.Estimatedworkload = estimatedWorkload;
            this.RealWorkload = RealWorkload;
            this.UseriD = UseriD;
            this.Comment = comment;
            this.titel = Titel;
        }

        public Tasks(string TaskName, string UserName, string Product, string Sprint, string UserStory, string Status_2, int EstWork, int RealWork)
        {
            
            this.titel = TaskName;
            this.username = UserName;
            this.productname = Product;
            this.sprinttitel = Sprint;
            this.userstorytitel= UserStory;
            this.Status = Status;
            this.estimatedWorkload = EstWork;
            this.realWorkLoad = RealWork;
        }







    }
}
